package com.fqgj.sentry.policy.engine.domain;

import java.io.Serializable;

public class VariableOrConstant implements Serializable {

    private Boolean isVar;

    private Variable variable;

    private Object constant;

    /**
     * 字段 名称
     */
    private String displayName;


    public String getDisplayName() {
        return displayName;
    }

    public VariableOrConstant setDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    public VariableOrConstant() {
    }

    public VariableOrConstant(Boolean isVar, Variable variable, Object constant) {
        this.isVar = isVar;
        this.variable = variable;
        this.constant = constant;
    }

    public Boolean getIsVar() {
        return isVar;
    }

    public VariableOrConstant setIsVar(Boolean var) {
        isVar = var;
        return this;
    }

    public Variable getVariable() {
        return variable;
    }

    public VariableOrConstant setVariable(Variable variable) {
        this.variable = variable;
        return this;
    }

    public Object getConstant() {
        return constant;
    }

    public VariableOrConstant setConstant(Object constant) {
        this.constant = constant;
        return this;
    }
}
